package com.zhong.order.interceptor;


import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CustomFeignInterceptor implements RequestInterceptor {

    Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public void apply(RequestTemplate requestTemplate) {
        // TODO 日志拦截
//        requestTemplate.header("token", token);
        requestTemplate.uri("/5");
        logger.info("feign拦截器");

    }
}
